#ifndef SERVERHANDLER_H
#define SERVERHANDLER_H

#include <QStringList>
#include <QTcpServer>
#include "Logger.h"
#include "UserManager.h"

class ServerHandler : public QTcpServer
{
	Q_OBJECT

	Logger* _logger;
	UserManager* _userManager;

public:
	ServerHandler(QObject *parent = 0);
	void setLogger(Logger* logger);

protected:
	void incomingConnection(int socketDescriptor);
};

#endif // SERVERHANDLER_H
